package com.bbh.plugin.single.privilege.core.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "b_operate_log")
public class OperateLog {
    @Id
    private String id;

    /**
     * 操作平台
     */
    @Column(name = "app_key")
    private String appKey;

    private String ip;

    /**
     * 拦截的方法
     */
    private String method;

    private String tag;

    private String note;

    /**
     * 操作用户
     */
    private String user;

    @Column(name = "create_time")
    private Date createTime;

    private String params;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取操作平台
     *
     * @return app_key - 操作平台
     */
    public String getAppCode() {
        return appKey;
    }

    /**
     * 设置操作平台
     *
     * @param appKey 操作平台
     */
    public void setAppCode(String appKey) {
        this.appKey = appKey;
    }

    /**
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 获取拦截的方法
     *
     * @return method - 拦截的方法
     */
    public String getMethod() {
        return method;
    }

    /**
     * 设置拦截的方法
     *
     * @param method 拦截的方法
     */
    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * @return tag
     */
    public String getTag() {
        return tag;
    }

    /**
     * @param tag
     */
    public void setTag(String tag) {
        this.tag = tag;
    }

    /**
     * @return note
     */
    public String getNote() {
        return note;
    }

    /**
     * @param note
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     * 获取操作用户
     *
     * @return user - 操作用户
     */
    public String getUser() {
        return user;
    }

    /**
     * 设置操作用户
     *
     * @param user 操作用户
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return params
     */
    public String getParams() {
        return params;
    }

    /**
     * @param params
     */
    public void setParams(String params) {
        this.params = params;
    }
}